import 'package:url_launcher/url_launcher.dart';

import 'res_utils.dart';
import 'toast_utils.dart';

class UrlUtils{

  static toOuterUrl(String url,{String? point}) async{
    if (await canLaunch(url)) {
      await launch(url);
    } else {
      ToastUtils.toast(point??'${StringUtils.openbrowserfail}');
    }
  }
}